package com.ruoyi.swap.openapi.quotesTicker.mapper;

import java.util.List;

import com.ruoyi.swap.openapi.orderbook.domain.VO.SwapOpenapiOrderbookVO;
import com.ruoyi.swap.openapi.quotesTicker.domain.SwapOpenapiQuotesTicker;
import com.ruoyi.swap.openapi.quotesTicker.domain.VO.SwapOpenapiQuotesTickerVO;
import org.apache.ibatis.annotations.Param;

/**
 * 行情tickerMapper接口
 * 
 * @author saumell
 * @date 2024-08-19
 */
public interface SwapOpenapiQuotesTickerMapper 
{
    /**
     * 查询行情ticker
     * 
     * @param id 行情ticker主键
     * @return 行情ticker
     */
    public SwapOpenapiQuotesTickerVO selectSwapOpenapiQuotesTickerById(Integer id);

    /**
     * 查询行情ticker列表
     * 
     * @param swapOpenapiQuotesTicker 行情ticker
     * @return 行情ticker集合
     */
    public List<SwapOpenapiQuotesTickerVO> selectSwapOpenapiQuotesTickerList(SwapOpenapiQuotesTickerVO swapOpenapiQuotesTicker);

    List<SwapOpenapiQuotesTickerVO> selectSwapAllData();

    Integer queryCurryNumber(@Param("currencyPair")String currencyPair);

    /**
     * 新增行情ticker
     * 
     * @param swapOpenapiQuotesTicker 行情ticker
     * @return 结果
     */
    public int insertSwapOpenapiQuotesTicker(SwapOpenapiQuotesTicker swapOpenapiQuotesTicker);

    /**
     * 修改行情ticker
     * 
     * @param swapOpenapiQuotesTicker 行情ticker
     * @return 结果
     */
    public int updateSwapOpenapiQuotesTicker(SwapOpenapiQuotesTicker swapOpenapiQuotesTicker);

    /**
     * 删除行情ticker
     * 
     * @param id 行情ticker主键
     * @return 结果
     */
    public int deleteSwapOpenapiQuotesTickerById(Integer id);

    /**
     * 批量删除行情ticker
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSwapOpenapiQuotesTickerByIds(Integer[] ids);
}
